from django.db import migrations, models
import django.db.models.deletion

class Migration(migrations.Migration):
    initial = True

    dependencies = [
        ('users', '01_initial'),
    ]

    operations = [
        migrations.CreateModel(
            name='Report',
            fields=[
                ('id', models.BigAutoField(auto_created=True, primary_key=True, serialize=False, verbose_name='ID')),
                ('title', models.CharField('报告标题', max_length=255)),
                ('content', models.TextField('报告内容')),
                ('workflow_name', models.IntegerField(
                    choices=[(1, '阶段总结'), (2, '产业报告')],
                    verbose_name='工作流名称'
                )),
                ('report_type', models.IntegerField(
                    choices=[(0, '无'), (1, '月度'), (2, '季度'), (3, '年度')],
                    default=0,
                    verbose_name='报告类型'
                )),
                ('report_style', models.IntegerField(
                    choices=[(0, '无'), (1, '决策'), (2, '创新'), (3, '科研')],
                    default=0,
                    verbose_name='报告风格'
                )),
                ('industry', models.CharField('关联产业', max_length=100)),
                ('created_at', models.DateTimeField(auto_now_add=True, verbose_name='创建时间')),
                ('updated_at', models.DateTimeField(auto_now=True, verbose_name='更新时间')),
                ('user', models.ForeignKey(
                    on_delete=django.db.models.deletion.CASCADE,
                    related_name='reports',
                    to='users.user',
                    verbose_name='创建用户'
                )),
            ],
            options={
                'verbose_name': '报告',
                'verbose_name_plural': '报告',
                'db_table': 'reports',
                'ordering': ['-created_at'],
            },
        ),
    ] 